package win.demonlegion.service;

import win.demonlegion.mapper.UserDetailMapper;
import win.demonlegion.module.UserDetailBean;
import win.demonlegion.service.inte.UserDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:Samson
 * @Description:
 * @Date:Created in 2017/5/24.
 */
@Service("userDetailService")
public class UserDetailServiceImpl implements UserDetailService {
    @Autowired
    private UserDetailMapper userDetailMapper;

    @Override
    public UserDetailBean findById(String id) {
        return userDetailMapper.findById(id);
    }

    @Override
    public UserDetailBean selectById(String id) {
        return userDetailMapper.selectById(id);
    }

    @Override
    public int deleteById(String id) {
        return userDetailMapper.deleteById(id);
    }

    @Override
    public int update(UserDetailBean detail) {
        return userDetailMapper.update(detail);
    }

    @Override
    public int add(UserDetailBean userDetailBean) {
        return userDetailMapper.add(userDetailBean);
    }

    @Override
    public int count() {
        return 0;
    }

    @Override
    public List<UserDetailBean> findAll() {
        return userDetailMapper.findAll();
    }
}
